package com.adprof.demo.natives.viewholders;

import android.view.View;
import android.widget.FrameLayout;

import androidx.recyclerview.widget.RecyclerView;

import com.adprof.demo.android.R;
import com.adprof.demo.natives.renders.NativeDemoRender;

/**
 * 广告ViewHolder - 用于展示原生广告
 * 同时支持RecyclerView和ListView
 */
public class AdViewHolder extends RecyclerView.ViewHolder {
    public FrameLayout adContainer;
    public NativeDemoRender adRender;

    public AdViewHolder(View itemView) {
        super(itemView);
        adContainer = itemView.findViewById(R.id.ad_container);
        adRender = new NativeDemoRender(itemView.getContext());
    }
}
